import request from "@/util/request";

export function addResources(resource){
    return request({
        url: '/resources/add',
        method: 'post',
        data: resource
    })
}

export function deleteResource(id){
    return request({
        url: '/resources/delete/' + id,
        method: 'delete'
    })
}

export function resourceList(pageNum, pageSize){
    return request({
        url: '/resources/list?pageNum=' + pageNum + '&pageSize=' + pageSize,
        method: 'get'
    })
}